package com.sxkf.template.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@ApiModel(description="t_shopping_cart")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_shopping_cart")
public class ShoppingCart {
    /**
     * 主键PK
     */
    @TableId(value = "id", type = IdType.NONE)
    @ApiModelProperty(value="主键PK")
    private String id;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value="用户ID")
    private String userId;

    /**
     * 商品ID
     */
    @TableField(value = "product_id")
    @ApiModelProperty(value="商品ID")
    private String productId;

    @TableField("store_id")
    @ApiModelProperty(value = "门店id")
    private String storeId;

    /**
     * 商品的SKU编号
     */
    @TableField(value = "product_spec_id")
    @ApiModelProperty(value="商品规格id")
    private String productSpecId;

    /**
     * 商品的数量
     */
    @TableField(value = "`count`")
    @ApiModelProperty(value="商品的数量")
    private Integer count;

    /**
     * 创建时间，商品添加时间
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @ApiModelProperty(value="创建时间，商品添加时间")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value="修改时间")
    private Date updateTime;
}